package com.funlog.designpattern.composite.demo02;

public class Client {
    public static void main(String[] args) {
        University university = new University("邵阳学院", "邵阳学院很垃圾");

        College softWareCollege = new College("软件工程", "软件工程");
        softWareCollege.add(new Department("计算机科学与技术", "计算机科学与技术是一门很古老的专业"));
        softWareCollege.add(new Department("信息安全与防护", "信息安全是很重要的专业"));

        College liziyuanCollege = new College("李子园", "李子园很烂");
        liziyuanCollege.add(new Department("中文系", "中文系不知道在干什么？"));
        liziyuanCollege.add(new Department("外语系", "外语系全是女的！"));

        university.add(softWareCollege);
        university.add(liziyuanCollege);

        university.print();
    }
}
